package com.itheima.demo3;

public class B  {

    private int anInt;
    private String name;

    /*public B() {
        System.out.println("父类空参构造");
    }*/

    public B(int anInt, String name) {

        System.out.println("父类有参构造");
        this.anInt = anInt;
        this.name = name;
    }

    public void test(){
        System.out.println("B");
    }

    public void show(){
        System.out.println("showBBB");
    }

     static void method(){
        System.out.println("fulei静态方法");
    }
}
